package com.homedo.microservice.open.service.gateway.alert.support;

public abstract class CurAlertingSupportHolder {
    private static final ThreadLocal<Integer> THREAD_LOCAL = new CurAlertingThreadLocal("CurAlertingSupportHolder");

    public CurAlertingSupportHolder() {
    }

    public static void reset() {
        THREAD_LOCAL.remove();
    }

    public static void set(int alertingId) {
        THREAD_LOCAL.set(alertingId);
    }

    public static Integer get() {
        return THREAD_LOCAL.get();
    }
}
